package com.jason.ordermd;

import com.alibaba.cloud.seata.GlobalTransactionAutoConfiguration;
//import io.seata.spring.boot.autoconfigure.SeataAutoConfiguration;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ImportResource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@MapperScan("com.jason.ordermd.mapper")
/*@EnableFeignClients*/
@EnableTransactionManagement
@SpringBootApplication(
        exclude ={
                //SeataAutoConfiguration.class,//sprig alibaba 2.2以上开启shardingshpere，则这里要注释
                GlobalTransactionAutoConfiguration.class//spring alibaba 2.1
                //DataSourceAutoConfiguration.class
        })
@EnableDiscoveryClient
@EnableDubbo
@ImportResource("classpath:springdubbo/*.xml")
public class OrderServiceStarter {
    public static void main(String[] args) {
        SpringApplication.run(OrderServiceStarter.class);
    }
}
